Smush\Core\Modules\CDN D

Total Complexity 210
Dependencies 5
Dependents 5
Total lines 1,528
Lines of code 682
Logical lines of code 401
Comment lines 609
Methods 33
Properties 9

Methods 33

Method Rating Maintainability Complexity Lines of code
parse_image()
C
36 26 74
is_supported_path()
B
47 18 31
set_additional_srcset()
A
40 13 59
update_image_srcset()
A
46 13 38
update_cdn_image_src_args()
A
50 10 29
status()
A
53 10 21
init_flags()
A
55 10 19
filter_rest_api_response()
A
53 9 23
settings_desc()
A
44 7 50
init()
A
49 8 29
generate_srcset()
A
51 8 26
update_stats()
A
52 8 25
toggle_cdn()
S
52 6 26
generate_cdn_url()
S
54 6 19
check_mapped_domain()
S
54 5 22
get_size_from_file_name()
S
58 5 15
is_valid_url()
S
60 5 13
max_content_width()
S
62 5 11
parse_background_image()
S
58 4 16
process_cdn_status()
S
60 4 13
maybe_generate_srcset()
S
54 3 21
update_image_sizes()
S
63 4 10
dns_prefetch()
S
69 4 6
get_url_without_dimensions()
S
60 3 12
get_image_size()
S
62 3 11
process_src()
S
64 3 9
register()
S
52 1 27
schedule_cron()
S
72 2 5
get_status()
S
80 2 3
init_parser()
S
70 2 7
unschedule_cron()
S
75 1 4
set_cdn_url()
S
74 1 4
__construct()
S
77 1 4